<template>
  <div class="main">
    <div class="aside">
      <div class="logo">落新家</div>
      <div class="aside-box scroll">
        <MenuList :activeIndex="nav" />
      </div>
      
    </div>
    <div class="main-content">
      <div class="admin-nav">
        <AdminNav />
      </div>
      <div class="content">
        <router-view @isTitle="getisTitel"></router-view>
      </div>
    </div>
  </div>
</template>

<script>
  import '@/assets/less/b_main.less'
  import AdminNav from '@/components/AdminNav.vue'
  import MenuList from '@/components/MenuList.vue'
  export default {
    name: 'Main',
    components: {
      AdminNav,
      MenuList
    },
    data() {
      return {
        nav: '1-1',
        title: '房源列表'
      }
    },
    methods: {
      getisTitel(t) {
      // console.log('oj==>', t)
      this.title = t.title || "房源列表";
      this.nav = t.nav || "1-1";
    },
    },
  }
</script>
